package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh导入名单联系附属Model;
import com.iris.live.services.data.models.Lsh导入名单联系附属ModelPK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by ThinkPad on 2016/9/21.
 */
@Transactional
public interface Lsh导入名单联系附属Repository extends JpaRepository<Lsh导入名单联系附属Model, Lsh导入名单联系附属ModelPK>, JpaSpecificationExecutor<Lsh导入名单联系附属Model> {

    @Query("select a from Lsh导入名单联系附属Model a where a.联系记录编号=?1")
    List<Lsh导入名单联系附属Model> findBy联系记录编号(Integer id);

}
